package cc.mrbird.febs.pay.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author: Mr.Yang
 * @CreateTime: 2022-08-07
 * <p>
 * one(1, "微信JSAPI{小程序}"),
 * two(2, "微信APP"),
 * three(3, "微信h5"),
 * eleven(11, "支付宝app"),
 * twelve(12, "支付宝手机网页"),
 * //    thirteen(13, "支付宝电脑网页"),
 * forty(14, "支付宝面对面");
 */

@AllArgsConstructor
@Getter
public enum PayType {
    /**
     * 微信
     */
    WX_PAY_H5(1, "微信", "H5"),
    WX_PAY_APP(2, "微信", "APP"),
    WX_PAY_JSAPI(3, "微信", "JSAPI"),
    WX_PAY_NATIVE(4, "微信", "NATIVE"),
    /**
     * 支付宝
     */
    A_LI_PAY_APP(5, "支付宝", "APP"),
    A_LI_PAY_PC(6, "支付宝", "PC"),

    /**
     * 线下支付
     */
    COD(7, "线下支付", "线下支付"),

    /**
     * 积分支付
     */
    INTEGRAL(8, "积分支付", "积分支付"),

    ;
    /**
     * 类型
     * `payment_type` varchar(20) DEFAULT NULL COMMENT '支付类型',
     *  `trade_type` varchar(20) DEFAULT NULL COMMENT '交易类型',
     *
     */
    private final Integer code;
    private final String label;
    private final String tradeType;
}
